import java.util.Date;


public class VMG<T> implements Comparable<T>{

	String name;
	String cellphone;
	Date date;
	String text;
	
	public VMG()
	{}
	
	public VMG(String name, String cellphone, Date date, String text)
	{
		this.name=name;
		this.cellphone=cellphone;
		this.date=date;
		this.text=text;
	}

	@Override
	public int compareTo(T o) {
		
		if(this.date.before(((VMG)o).date))
		return -1;
		else if(this.date.after(((VMG)o).date))
		return 1;
		else 
		return 0;
	}
	
}
